package com.eternal.widget.guqiang;

/**
 * Created by Administrator
 * On 2020/5/4
 * Description:
 * @author Administrator
 */
public interface IEffectBar {
    boolean isChecked();
    int getProgress();
    float getTx();
    void setProgress(float x, boolean isMax);
    void setListener(Listener listener);
    void setFactory(Factory factory);

    interface Listener{
        void onDown(boolean isProgress);
        void onChange(int now);
        void onUp(boolean isProgress, int now);
        void onChecked(boolean b);
    }

    interface Factory{
        String getText(int value);
    }
}
